<template>
	<view>
		{{userInfo.username}}
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userInfo:{}
			}
		},
		methods: {
			onLoad(){
				uniCloud.callFunction({
					name: "test",
					data: {
				
					},
					success: (res) => {
						// this.loding = false
						// console.log(res.result.data[0]);
						this.userInfo = res.result.data[0]
					},
					fail: (err) => {
						console.log(err);
					}
				
				});
			}
		}
	}
</script>

<style>

</style>
